﻿using UnityEngine;
using UnityEngine.UI;
using System;

public class LoginPanel : MonoBehaviour
{
    #region 此代码为自动生成,谨慎改动(@Author:wuzhang)
    private Transform m_root1 = null;
    private UIButton m_Button_btnLogin = null;
    private UISprite m_Sprite_btnLogin = null;
    private UISlider m_Slider_Slider = null;
    private UIButton m_Button_btnRegister_1 = null;
    private UIInput m_Input_InputName = null;
    private UIInput m_Input_InputPasswd_1 = null;

    private bool isInit = false; 
    
    void Awake()    
    {
        InitUIComponent();
    }
    
    void InitUIComponent()
    {
        if (isInit)
            return;
        isInit = true;
        m_root1 = transform.FindChild("root1").GetComponent<Transform>();
        m_Button_btnLogin = transform.FindChild("root1/btnLogin").GetComponent<UIButton>();
        m_Sprite_btnLogin = transform.FindChild("root1/btnLogin").GetComponent<UISprite>();
        m_Slider_Slider = transform.FindChild("root1/Slider").GetComponent<UISlider>();
        m_Button_btnRegister_1 = transform.FindChild("root2/btnRegister").GetComponent<UIButton>();
        m_Input_InputName = transform.FindChild("root3/InputName").GetComponent<UIInput>();
        m_Input_InputPasswd_1 = transform.FindChild("root3/InputPasswd").GetComponent<UIInput>();
        InitUIEvent();
    }

    void Start()
    {
    
    }

    private void InitUIEvent()
    {
        UIEventListener.Get(m_Button_btnLogin.gameObject).onClick = Onm_Button_btnLoginClick;
        UIEventListener.Get(m_Button_btnRegister_1.gameObject).onClick = Onm_Button_btnRegister_1Click;
    }

    private void Onm_Button_btnLoginClick(GameObject go)
    {
        throw new NotImplementedException();
    }

    private void Onm_Button_btnRegister_1Click(GameObject go)
    {
        throw new NotImplementedException();
    }
    #endregion
}
